//
//  DataModel.h
//  XiaoHongShu
//
//  Created by Jason on 2022/6/20.
//

#import <Foundation/Foundation.h>

@class BaseModel;
@class MainDataModel;
NS_ASSUME_NONNULL_BEGIN

@interface DataModel : NSObject

@property (nonatomic, strong) NSArray<BaseModel *> *records;
@property (nonatomic, assign) NSInteger total;
@property (nonatomic, assign) NSInteger size;
@property (nonatomic, assign) NSInteger current;
@property (nonatomic, assign) BOOL optimizeCountSql;
@property (nonatomic, assign) BOOL searchCount;
@property (nonatomic, assign) NSInteger countId;
@property (nonatomic, assign) NSInteger maxLimit;
@property (nonatomic, assign) NSInteger pages;

// 从网络获取的 JOSN 类型的数组 转换成 模型数组
// + (NSArray <MainDataModel *> *)arrayFromJSONArray:(NSArray *)jsonArray;
@end

NS_ASSUME_NONNULL_END
